package com.audible.library.view.backing;

import javax.inject.Named;

/**
 * The object of this class represents an AudioBook. This is a view bean.
 * It holds properties specific to an audio book like format type, duration, etc.
 * 
 * @author Jigar Shah
 * @version 0.1
 */
@Named
public class AudioBook extends Book {

    private static final long serialVersionUID = 7474978143601649926L;

    public enum Format {
        Enhanced, Format4, Format3, Format2
    }
    private Format formatType = Format.Format4;
    private int lengthInSec;

    public AudioBook() {
        super();
    }
    
    /**
     * @return the formatType
     */
    public Format getFormatType() {
        return formatType;
    }

    /**
     * @param formatType the formatType to set
     */
    public void setFormatType(Format formatType) {
        this.formatType = formatType;
    }

    /**
     * @return the lengthInSec
     */
    public int getLengthInSec() {
        return lengthInSec;
    }

    /**
     * @param lengthInSec the lengthInSec to set
     */
    public void setLengthInSec(int lengthInSec) {
        this.lengthInSec = lengthInSec;
    }
}
